package com.whzm.mapper;

import com.whzm.pojo.MemberOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface MemberOrderMapper {
    //生成付费信息
    int creatOrder(MemberOrder memberOrder);
    //获取当前用户所有缴费信息
    List<MemberOrder> getListByUserId(@Param("userId") String userId);
    //通过id获取缴费单
    MemberOrder getOrderById(@Param("id") String id);
    //逻辑删除会员缴费信息
    int deleteById(@Param("id") String id, @Param("isDeleted") Integer isDeleted);
    //修改订单支付状态
    int updateStatus(@Param("id") String id, @Param("status") String status);
}
